package com.example.smartcity_poverty.ui.AllService.LogisticsQuery.adapter

import com.example.smartcity_poverty.Base.BaseRecyclerAdapter
import com.example.smartcity_poverty.logic.ServiceBean.LogisticsQueryBean.LqNoQueryModel
import kotlinx.android.synthetic.main.re_lq_no_list.*

/**
 *  created by ikun
 *  ANDROID STUDIO - version 4.0
 *  email: jinkunwei41@gmail.com
 * --------------------------------
 *
 **/
class LqShowThisAdapter(
    val list: MutableList<LqNoQueryModel.DataBean.StepListBean>,
    layoutId: Int
) : BaseRecyclerAdapter<LqNoQueryModel.DataBean.StepListBean>(list, layoutId) {
    override fun setData(
        view: BaseViewHolder.ViewFind,
        data: LqNoQueryModel.DataBean.StepListBean,
        position: Int,
        holder: BaseViewHolder
    ) {
        val d = list[position]
        val con = holder.viewFind.view?.context

        view.lqShowThisStart.text = "${d.stateName}"
        view.lqShowThisName.text = "物流到达: ${d.addressAt}"
        view.lqShowThisTime.text = "时间: ${d.eventAt}"

    }
}